var app = getApp();
var httpUtils = require('../../utils/httpUtils.js');
Page({
  data: {
    dismissedSuggestionsList: []
  },
  onLoad: function (option) {
    console.log(JSON.stringify(option));
    var order_id = option.order_id;

    var _this = this;
    var url = app.globalData.interfaceUrl + '/order.do?method=notPassReason';
    console.log(url);
    httpUtils.post(url, {
      'orderId': order_id
    }, function(res) {
      var dismissedSuggestionsList = res.data.data;
      _this.setData({
        dismissedSuggestionsList: dismissedSuggestionsList
      });
    });
  },
  gotoMakeCall: function() {
    wx.navigateTo({
      url: '../makeCall/makeCall'
    })
  }
})